﻿@using ECG.WebUI.CustomHelpers
@model IEnumerable<ECG.Common.ViewBannerClientDto>
@{
    var bannerFilter = Model.Where(m => m.PageKey == "TRANG-CHU" & m.PositionKey == "SLIDE-ON-HOME").OrderBy(m=>m.BannerImageOrder);
}
@if (bannerFilter.Any())
{
    <!--Slide Show-->
    <div class="adv-banner-best" id="slideshowHolder">
        <div class="flexslider">
            <ul class="slides">
                @foreach (var item in bannerFilter)
                {
                    <li>
                        <a href="@string.Format("{0}", string.IsNullOrEmpty(item.Url) ? "javascript:void(0);" : item.Url)" title="@item.Title">
                            @*<img src="@item.ImagePath.ImagePathThumbDefault()" alt="@item.Description" width="@item.Width" height="@item.Height" />*@
                            <img src="@item.ImagePath.ImagePathThumbDefault()" alt="@item.Description" width="604" height="293" />
                        </a>
                    </li>
                }
            </ul>
        </div>
    </div>
}